<?php
class Lienhe_Model extends General_Model {

	function getlienhe() {
		$query = $this->db->get ( 'lienhe' );
		$list = $query->result_array();
		return $list;
	}
	
	function lay_dulieu_de_sua($id) {
	    $this->db->where ( 'id', $id );
		$query = $this->db->get ( 'lienhe' );
		$dulieu = $query->result_array();
		return $dulieu;
	}
	
    function del($id) {
		$this->db->where ( 'id', $id );
		$this->db->limit ( 1, 0 );
		$this->db->delete ( 'lienhe' );
		return TRUE;
	}
}	